package org.htmlparser.sax;

import org.htmlparser.Parser;
import org.htmlparser.lexer.Lexer;
import org.htmlparser.lexer.Page;
import org.xml.sax.Locator;

public class Locator
  implements org.xml.sax.Locator
{
  protected Parser mParser;

  public Locator(Parser paramParser)
  {
    this.mParser = paramParser;
  }

  public int getColumnNumber()
  {
    Lexer localLexer = this.mParser.getLexer();
    return localLexer.getPage().column(localLexer.getCursor());
  }

  public int getLineNumber()
  {
    Lexer localLexer = this.mParser.getLexer();
    return localLexer.getPage().row(localLexer.getCursor());
  }

  public String getPublicId()
  {
    return null;
  }

  public String getSystemId()
  {
    return this.mParser.getURL();
  }
}